package com.wyz.note.project.security.pojo;

import java.io.Serializable;

/**
 * @Description: 角色
 * @Author: wei yz
 * @Date: 2022/6/18 14:30
 */
public class Role implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private String id;
    /**
     * 角色编码
     */
    private String code;
    /**
     * 角色名称
     */
    private String name;

    public Role() {
    }

    public Role(String id, String code, String name) {
        this.id = id;
        this.code = code;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
